<%-- 
    Document   : promotion.jsp
    Created on : 20 déc. 2012, 09:50:03
    Author     : Vince
--%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setBundle basename="packageLangue.lang" scope="session"/>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="pagename" scope="request" value="promotion.jsp"/>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:include page="header.jsp"></jsp:include>

    <div id="content">
        <div id="top">
                <h1>Promotions</h1>
        </div>
        <div id="milieu">
            <div id="texte">   
                <h2><fmt:message key="Promo_Liste"/></h2>
                <br/>
                <c:forEach var="book" items="${bookList}">
                    <div id="categ_cont">
                        <div id="categorie">
                            <div id="img_categ">
                                <img src="img/boutique3_c.jpg" height="70px" border="0"/>
                            </div>
                            <div id="categ_contenu">
                                <div style="float:right;color:red;margin:5px 10px 0 0;">
                                    <c:if test="${book.getPrix() == book.getPrixPromo()}">
                                        <span><fmt:message key="Prix"/><fmt:formatNumber value="${book.getPrix()}" type="number"/> €</span>
                                    </c:if>
                                    <c:if test="${book.getPrix() != book.getPrixPromo()}">
                                        <span style="color:black;font-size:13px;"><fmt:message key="Prix"/><s><fmt:formatNumber value="${book.getPrix()}" type="number"/> €</s></span>
                                        <br/>
                                        <span>Promo : <fmt:formatNumber value="${book.getPrixPromo()}" type="number"/> €</span>
                                    </c:if>
                                </div>
                                <span><b>Titre</b> : ${book.getTitre()}</span>
                                <div><b>Auteur</b> : ${book.getPrenomAuteur()} ${book.getNomAuteur()}</div>
                                <div><b>ISBN</b> : ${book.getIsbn()}</div>
                                <a href="ServletDescription?ISBN=${book.getIsbn()}" style="float:right;font-size:17px;"><fmt:message key="Descr"/></a>
                            </div>
                        </div>
                    </div>
                </c:forEach>
            </div>  
        </div>
        <div id="bottom"></div>
    </div>

<jsp:include page="footer.jsp"></jsp:include>